var express = require('express');
var router = express.Router();
var User = require('../models/user');
/* GET home page. */
router.get('/', function(req, res, next) {
  User.find({},(err,docs)=>{
    if(err){
      console.trace(err)
    }
    res.send({code:200,data:docs});
  })
});

module.exports = router;
